<template>
	<view class="special-enter-page page">
		<image class="top-bg" :src="cloudStorage+'index/top-bg.png'"></image>
		<CustomNav :isBack="true" :color="titleColor" :topBgColor="topBgColor" title="项目案例"></CustomNav>
		<view class="white-block">
			<template v-if="list.length>0">
				<view class="info-list" v-for="item in list" :key="item.id"
					@click="navigate('/page_pack/seed/case_detail?id='+item.id)">
					<view class="name">{{item.title}}</view>
					<view class="describe">{{item.describe}}</view>
				</view>
			</template>
			<view v-if="more==false&&list.length==0" class="empty">暂无数据</view>
			<view v-else-if="more==false&&list.length>0" class="empty">没有更多了</view>
		</view>
	</view>
</template>

<script>
	import {
		isMore
	} from '@/util/util'
	export default {
		data() {
			return {
				conf: {
					page: 1,
					limit: 20
				},
				more: true,
				titleColor: '#000',
				topBgColor: 'rgba(0,0,0,0)',
				list: [{
						id: 1,
						title: '肃州区2023年绿色种养循环农业试点项目',
						describe: '肃州区农业农村局项目分管领导对肃州区2023年绿色种养循环农业试点项目工作作了动员讲话，并从思想认识、工作方向'
					},
					{
						id: 2,
						title: '酒泉市肃州区玉米单产提升工程项目',
						describe: '甘肃省酒泉市肃州区农业农村局，肃州区农技中心组织人员到敖包苏木玉米单产项目区考察科左中旗玉米单产提升'
					}
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.special-enter-page {
		width: 100%;

		.top-bg {
			width: 100%;
			height: 480rpx;
		}

		.white-block {
			min-height: calc(100vh - 430rpx);
			position: relative;
			margin-top: -50rpx;
			padding: 30rpx;
			width: 100%;
			border-radius: 20px 20px 0 0;
			background: #F7F6F9;

			.info-list {
				background-color: #fff;
				border-radius: 20rpx;
				margin-bottom: 30rpx;
				padding: 30rpx;

				.name {
					margin-bottom: 20rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}

				.describe {
					font-size: 28rpx;
					color: #999;
					display: -webkit-box;
					overflow: hidden;
					text-overflow: ellipsis;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					line-height: 54rpx;
				}
			}
		}
	}
</style>